package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 出库包裹产品明细表
 * </p>
 *
 * @author long
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_outbound_package_detail")
public class OrderOutboundPackageDetailDo extends Model<OrderOutboundPackageDetailDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 出库包裹id
     */
    @TableField("package_id")
    private Long packageId;

    @TableField("outbound_id")
    private Long outboundId;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * sku
     */
    @TableField("sku")
    private String sku;

    /**
     * 数量
     */
    @TableField("qty")
    private Integer qty;

    @TableField("item_memo")
    private Double itemMemo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}